package com.stylefeng.guns.modular.vpn_package_info.dao;

import com.stylefeng.guns.modular.vpn_package_info.dto.AddDiscountDTO;
import com.stylefeng.guns.modular.vpn_package_info.entity.VpnPackageInfoDO;
import com.stylefeng.guns.modular.vpn_package_info.entity.VpnPackageItemDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DiscountMapper {
    void savePackageDiscount(AddDiscountDTO dto);
    List<VpnPackageInfoDO> findShortPackageList();
    Integer lastShowSort();
    List<VpnPackageItemDO> findPackageDiscountList();
    List<VpnPackageItemDO> findPackageItemByPackageId(@Param("packageId") Integer packageId);
    void updateDiscountById(AddDiscountDTO dto);
    List<VpnPackageItemDO> findPackageCountBySort(@Param("showSort") Integer sort);
}
